package com.ebupt.migu.music.schedule.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.ebupt.migu.music.autoTri.Entity.PopupStatistics;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by Intellij IDEA.
 * User:  wangxi
 * Date:  2022/11/13
 */
@Mapper
@DS("mysql_mg")
public interface PopupStatsMapper {

    /**
     *
     * @param list
     * @return
     */
    List<Map<String, Object>> queryActivityInfo(List list);


    /**
     * 删除一周前的数据
     * @param lastweek
     * @return
     */
    int deleteBeforeRealtimeData(String lastweek);

    /**
     *
     * @param statsMsgList
     * @return
     */
    int insertPopupRealtimeData(@Param("statsMsgList")List<PopupStatistics> statsMsgList);


}
